package com.ztesoft.web.common.customdb.dao.dto;

import java.util.Date;
import java.util.List;

import org.apache.commons.lang.StringUtils;

import com.ztesoft.framework.dto.AbstractDto;

public class SysModuleDto extends AbstractDto{
	private Integer  moduleId;
	private String  moduleName;
	private Integer  moduleLevel;
	private Integer  parentModuleId;
	private Date  createDate;
	private Integer  staffId;
	
	private SysModuleDto parent;
	
	private List<SysModuleDto> children;
	
    public SysModuleDto getParent() {
		return parent;
	}
	public void setParent(SysModuleDto parent) {
		this.parent = parent;
	}
	public List<SysModuleDto> getChildren() {
		return children;
	}
	public void setChildren(List<SysModuleDto> children) {
		this.children = children;
	}
	public Integer getModuleId() {
        return moduleId;
    }
    public void setModuleId(Integer moduleId) {
        this.moduleId = moduleId;
    }

    
    public String getModuleName() {
        return StringUtils.isBlank(moduleName) ? moduleName : moduleName.trim();
    }
    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }
    
    
    public Integer getModuleLevel() {
        return moduleLevel;
    }
    public void setModuleLevel(Integer moduleLevel) {
        this.moduleLevel = moduleLevel;
    }

    
    public Integer getParentModuleId() {
        return parentModuleId;
    }
    public void setParentModuleId(Integer parentModuleId) {
        this.parentModuleId = parentModuleId;
    }
    
    public Date getCreateDate() {
		if (this.createDate ==null){
			return null;
		}
		return (Date) createDate.clone();
	}
	public void setCreateDate(Date createDate) {
		if (createDate == null) {
			this.createDate = null;
		} else {			
			this.createDate = (Date)createDate.clone();
		}
	}
	public Integer getStaffId() {
        return staffId;
    }
    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    
}